import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;


public class LiczbaTest {

	Liczba g= new Liczba();
	String a="";
	String b="";
	String c="";
	int i;
	
	@Before 
	
	public void inicjuj() {
		a=g.convertTo(8,2);
		b=g.convertTo(17,16);
		c=g.convertTo(5,3);
		
	}
	@Ignore
	@Test
	public void testOne () {
		assertEquals("assert equals true char",a, "110");
	}
	@Test(timeout=1)
	public void testTwo ()  {
		assertNotNull(b);
	}
	@Test
	public void testThree ()  {
		
		assertTrue(c.equals("12"));
	}
	
	@Test(expected = ArithmeticException.class) 
	public void testfour(){
		
		i = 1/0;
	}
	
	@After
	public void sprzataj() {
		g=null;
	}

}
